package com.star.uc.infras.repository.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.star.common.orm.contract.entity.BasePO;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 三方基本配置(UserThirdConfig)UserThirdConfig  实体类
 *
 * @author zhouhengzhe
 * @since 2023-12-01 01:33:42
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@TableName("user_third_config")
public class UserThirdConfigPO extends BasePO {

    @Schema(description = "客户端ID")
    private String clientId;

    @Schema(description = "客户端秘钥")
    private String clientSecret;

    @Schema(description = "网站回调域")
    private String redirectUri;

    @Schema(description = "stack_overflow的key")
    private String stackOverflowKey;

    @Schema(description = "团队名")
    private String domainPrefix;

    @Schema(description = "目录ID")
    private String directoryId;

    @Schema(description = "支付宝公钥")
    private String alipayPublicKey;

    @Schema(description = "生成ID")
    private String agentId;

    /**
     * 三方类型，google，apple，facebook等
     *
     * @see com.star.uc.contract.enums.LoginTypeEnum
     */
    @Schema(description = "三方类型，google，apple，facebook等")
    private String thirdType;

    /**
     * 客户端（可以看ClientTypeEnum类）
     *
     * @see com.star.uc.contract.enums.ClientTypeEnum
     */
    @Schema(description = "客户端（可以看ClientTypeEnum类）")
    private String clientType;

    @Schema(description = "开发环境代理Host，用于国外第三方登录")
    private String devProxyHost;

    @Schema(description = "开发环境代理端口，用于国外第三方登录")
    private Integer devProxyPort;

    /**
     * 状态，0：禁用，1：正常
     *
     * @see com.star.common.core.contract.enums.StatusEnum
     */
    @Schema(description = "状态，0：禁用，1：正常")
    private Integer status;

}
